package com.hpeng.sys.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.hpeng.sys.dao.NoticeDao;
import com.hpeng.sys.model.Notice;
import com.hpeng.sys.model.Staff;
import com.hpeng.sys.service.NoticeMgr;
import com.hpeng.util.Pagination;

@Component("noticeMgrImpl")  
public class NoticeMgrImpl implements NoticeMgr{
	public List<Notice> getAll(){
		return noticeDao.getTheAll();
	}
	public Pagination<Notice> getPagination(int pageNumber,String[] hql,String[] values,String order){
		return noticeDao.getPagination(pageNumber, hql,values, order);
	}
	public void deleteNotice(List<String> notids){
		noticeDao.deleteNotice(notids);
	}
	public void addNotice(Notice notice){
		noticeDao.addNotice(notice);
	}
	public Notice findById(String id){
		return noticeDao.findById(id);
	}
	public void updateNotice(Notice notice){
		noticeDao.updateNotice(notice);
	}
	@Resource
	private NoticeDao noticeDao;
}
